const Manager = require("./src/electron/aliOssManager");

const para = {
  region: "oss-cn-beijing",
  accessKeyId: "LTAI5tGN5bMeduacXUMiEveT",
  accessKeySecret: "SUWOX8ILzKc5VDOObxwiCCKNYSYidv",
  bucket: "cloud-doc-leo",
};

const client = new Manager(
  para.region,
  para.accessKeyId,
  para.accessKeySecret,
  para.bucket,
  "doc/"
);

client
  .uploadFile("./README.md")
  .then((res) => {
    console.log(res);
  })
  .catch((e) => console.log(e));
